<?php

declare(strict_types=1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class WhScanlog extends Model
{
    public function warehouse()
    {
        return $this->hasOne(Warehouse::class, 'id', 'wid')->bind(['warehouse_name' => 'name']);
    }

    public function operator()
    {
        return $this->hasOne(Operator::class, 'id', 'creator')->bind(['creator_name' => 'nickname']);
    }
}
